package site.laodengtou.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import site.laodengtou.mapper.AdminMapper;
import site.laodengtou.pojo.Admin;
import site.laodengtou.pojo.AdminVo;
import site.laodengtou.pojo.StuVo;
import site.laodengtou.pojo.TeaVo;
import site.laodengtou.pojo.Teacher;
import site.laodengtou.service.AdminService;
@Service
public class AdminServiceImpl implements AdminService {
	
	
	@Autowired
	AdminMapper adminMapper;

	public int addTeacher(Teacher tea) {
		
		return adminMapper.insertTeaXinxi(tea);
	}

	public List<Admin> adminlogin(Admin admin) {
		
		
		return adminMapper.adminlogin(admin);
	}

	public int updatePassword(AdminVo adminVo) {
		
		return adminMapper.updatePassword(adminVo);
	}

	public int updatePasswordforStu(StuVo stu) {
		 
		return adminMapper.updatePasswordforStu(stu);
	}

	public int updatePasswordfortea(TeaVo tea) {
		
		return adminMapper.updatePasswordfortea(tea);
	}
	
}
